package a.f.d.a;

import a.c.e;
import a.c.k;
import a.f.o;

class ib
  implements v
{
  public static final Object a = "y.layout.hierarchic.incremental.BorderBasedDDC.LEFT_BORDER_DPKEY";
  public static final Object b = "y.layout.hierarchic.incremental.BorderBasedDDC.RIGHT_BORDER_DPKEY";
  public static final Object c = "y.layout.hierarchic.incremental.BorderBasedDDC.LEFT_MIN_DISTANCE_DPKEY";
  public static final Object d = "y.layout.hierarchic.incremental.BorderBasedDDC.RIGHT_MIN_DISTANCE_DPKEY";
  private k e;
  private k f;
  private k g;
  private k i;
  private boolean j;
  
  public void a(o paramo, ac paramac, bc parambc)
  {
    boolean bool = d.R;
    this.e = paramo.c(a);
    this.f = paramo.c(b);
    this.g = paramo.c(c);
    this.i = paramo.c(d);
    this.j = (((!bool) && (this.g != null)) || ((!bool) && (this.i != null)) || ((bool) || ((this.e != null) || (this.f != null))));
  }
  
  public void b(o paramo, ac paramac, bc parambc)
  {
    this.g = null;
    this.i = null;
    this.e = null;
    this.f = null;
    this.j = false;
  }
  
  public double a(o paramo, vb paramvb, bc parambc, e parame1, e parame2)
  {
    if (!d.R) {
      if (!this.j) {
        return 0.0D;
      }
    }
    double d1 = (this.e != null) && (parame2 != null) ? this.e.getDouble(parame2) : 0.0D;
    double d2 = (this.f != null) && (parame1 != null) ? this.f.getDouble(parame1) : 0.0D;
    double d3 = Math.max((this.g != null) && (parame2 != null) ? this.g.getDouble(parame2) : 0.0D, (this.i != null) && (parame1 != null) ? this.i.getDouble(parame1) : 0.0D);
    return Math.max(d1 + d2, d3);
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.d.a.ib
 * JD-Core Version:    0.7.0.1
 */